/**
 * 统一发证 待签收数据api
 */
import request from "@/utils/request";

/**
 * 分页查询签收表数据
 * @param {*} params
 */
export function queryPages(params) {
  return request({
    url: process.env.VUE_APP_KSTB_ROUTE_PATH + "/tyfz/caseSignFor/queryPages",
    method: "get",
    params: params
  });
}

/**
 * 根据csfOid查询签收的数据
 * @param {*} csfOid
 */
export function getByCsfOid(csfOid) {
  return request({
    url:
      process.env.VUE_APP_KSTB_ROUTE_PATH +
      `/tyfz/caseSignFor/getByCsfOid/${csfOid}`,
    method: "POST",
    headers: {
      "Content-Type": "application/json;charset=UTF-8"
    }
  });
}

/**
 * 根据主键id查询数据
 * @param {*} id
 */
export function getById(id) {
  return request({
    url:
      process.env.VUE_APP_KSTB_ROUTE_PATH + `/tyfz/caseSignFor/getById/${id}`,
    method: "POST",
    headers: {
      "Content-Type": "application/json;charset=UTF-8"
    }
  });
}

/**
 * 根据当前用户区划 获取收件人列表信息
 * @param {*} params
 */
export function getAddresseeTree() {
  return request({
    url:
      process.env.VUE_APP_KSTB_ROUTE_PATH +
      "/tyfz/caseSignFor/getAddresseeTree",
    method: "get"
  });
}
